package constant

// ******************** cacheKey ********************* //
const (
	CacheKeyUserSessionMap         = "userSessionMap"         // 用户会话
	CacheKeySysUserSessionMap      = "sysUserSessionMap"      // 管理员会话缓存
	CacheKeyRecentOrderMessageMap  = "recentOrderMessageMap"  // 最新订单消息列表
	CacheKeyVerifyCodeSendCountMap = "verifyCodeSendCountMap" // 记录今天验证码发送的次数，<phone:codeKey, 次数>
	CacheKeyPrefixPropertyOptionDisableListMap = "propertyOptionDisableListMap" // 全局禁用商品属性选项
)

// ******************** cacheKeyPrefix ********************* //
const (
	CacheKeyPrefixVerifyCodeUserLogin          = "verifyCode:userLogin:"        // 用户登录验证码
	CacheKeyPrefixVerifyCodeSysUserLogin       = "verifyCode:sysUserLogin:"     // 管理员登录验证码
	CacheKeyPrefixVerifyCodeBindPhone          = "verifyCode:bindPhone:"        // 绑定手机验证码
	CacheKeyPrefixLockCreateOrder              = "lockCreateOrder:"             // 下单
	CacheKeyPrefixAccessLimiter                = "accessLimiter:"               // 限流器
)
